<template>
	<view>
		<cu-custom bgColor="bg-black" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">新闻详情</block>
		</cu-custom>
		<div class="rich-box">
			<rich-text :nodes="content" />
		</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:''
			};
		},
		onLoad(e) {
			this.content = e.content
		},
		onShareAppMessage(res) {
		    if (res.from === 'button') {// 来自页面内分享按钮
		      console.log(res.target)
		    }
		    return {
		      title: '自定义分享标题',
		      path: '/pages/test/test?id=123'
		    }
		  }
	}
</script>

<style lang="scss">
	.rich-box {
		padding: 25rpx;
		width: 100%;
		box-sizing: border-box;
	}
</style>
